import { get, post } from './http'

//请求未激活下线数
export const API_QUERY_UNACTIVE = p => get('/UserCenter?act=inactivePerson', p);
export const API_PLAYER_GAMEDATA = p => get('/ContractTransactionServlet?act=getTransactionRecords', p);

//节点：请求当前用户：统计账户资金明细
export const API_OWN_FUNDS = p => get('/trding/OverviewOfflineFundsServlet?act=statisticsFundDetails', p);
//节点：请求当前用户的：查看所有下线
export const API_OWN_OFFLINE_DATA = p => get('/trding/OverviewOfflineFundsServlet?act=viewAllUsers', p);

//数据推广：用户查看资金统计
export const API_VIEWFUNDSUS = p => get('/trding/OverviewOfflineFundsServlet?', p);
//数据推广：钱包绑定身份
export const walletBindingIdentity = p => get('/trding/OverviewOfflineFundsServlet?', p);
//数据推广：用户用钱包登陆换取phone
export const userLogsPhone = p => get('/trding/OverviewOfflineFundsServlet?', p);

//获取：代币和justwap lp代币转换比率
export const getJustWapTokenAndIssuanceTokenRate = p => get('/trding/TransactionDataServlet', p);
//判断，用户资金数据权限
export const judgeWhoAccessFunds = p => get('/trding/OverviewOfflineFundsServlet', p);

// 这里面的api是server.xgame.run,【这是人人牛服务器】
// 而投票和足球再xgame.run的，xgame主服务器。所以tronutil该死的接口迁移走